/* 全局样式 */
#root {
  width: 100%;
  height: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 布局样式 */
.layout {
  min-height: 100vh;
}

/* 头部样式 */
/* 移除自定义样式，改用 Ant Design 的内联样式方式 */
/* 用户下拉菜单样式 */
.ant-dropdown-link {
  color: rgba(0, 0, 0, 0.65);
  cursor: pointer;
}

.ant-dropdown-link:hover {
  color: #1890ff;
}

/* 导航栏样式 */
.nav-wrapper {
  background: #fff;
  padding: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.main-menu {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  line-height: 46px;
}

/* 内容区域样式 */
.content {
  padding: 24px 0;
  background: #f0f2f5;
  min-height: calc(100vh - 64px - 46px - 70px); /* 100vh - header高度 - nav高度 - footer高度 */
}

.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* 页脚样式 */
.footer {
  text-align: center;
  background: #f0f2f5;
  padding: 24px;
  height: 70px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .header-content {
    padding: 0 16px;
  }

  .system-title {
    font-size: 16px;
  }

  .main-menu {
    padding: 0 16px;
  }

  .content-wrapper {
    margin: 0 16px;
  }
}

/* 通用样式 */
.page-container {
  background: #fff;
  padding: 24px;
  border-radius: 4px;
}

.page-title {
  margin-bottom: 24px;
  color: rgba(0, 0, 0, 0.85);
  font-weight: 500;
  font-size: 20px;
}

/* 表格和表单样式 */
.ant-table-wrapper {
  background: #fff;
  border-radius: 4px;
}

.ant-form-item-label > label {
  font-weight: 500;
}

.intro-card {
  margin-bottom: 24px;
}

.feature-card {
  height: 100%;
}

.feature-content {
  display: flex;
  align-items: flex-start;
}

.feature-icon {
  font-size: 24px;
  margin-right: 12px;
  margin-top: 2px;
}

.feature-icon-blue {
  color: #1890ff;
}

.feature-icon-orange {
  color: #fa8c16;
}

.feature-icon-green {
  color: #52c41a;
}

.system-advantages {
  margin-top: 24px;
}

.advantages-list {
  padding-left: 20px;
  margin-bottom: 0;
}

.stat-card {
  transition: all 0.3s;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-description {
  margin-top: 10px;
  color: #8c8c8c;
}

.info-card {
  height: 100%;
  min-height: 300px;
}

/* 响应式布局 */
@media (max-width: 768px) {
  .menu-trigger {
    display: block;
  }

  .main-menu {
    display: none;
  }

  .user-name {
    display: none;
  }

  .header-left {
    flex: 1;
    display: flex;
    align-items: center;
  }

  .header-right {
    margin-left: 16px;
  }

  .logo {
    margin-right: 16px;
    max-width: calc(100% - 60px); /* 留出菜单按钮的空间 */
    overflow: hidden;
  }

  .app-title {
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .main-content {
    padding: 12px;
  }

  .content-wrapper {
    padding: 16px;
  }

  .main-header {
    padding: 0 16px;
  }

  .app-title {
    font-size: 16px;
  }

  .logo {
    margin-right: 24px;
  }

  .feature-content {
    flex-direction: column;
  }

  .feature-icon {
    margin-bottom: 8px;
  }

  .ant-table {
    font-size: 13px;
  }

  .ant-card-head-title {
    font-size: 15px;
  }
}

/* 中等屏幕菜单项优化 */
@media (min-width: 769px) and (max-width: 1200px) {
  .ant-menu-horizontal > .ant-menu-item,
  .ant-menu-horizontal > .ant-menu-submenu {
    padding: 0 10px;
    margin: 0 5px;
  }

  .logo {
    margin-right: 24px;
  }

  .main-content {
    padding: 20px;
  }

  .content-wrapper {
    padding: 20px;
    max-width: 1000px;
  }
}

@media (min-width: 1201px) {
  .content-wrapper {
    max-width: 1200px;
  }
}
.logo h1 {
  color: #1890ff;
  font-size: 18px;
  margin: 0;
  line-height: 31px;
}

/* 导航菜单样式 */
.ant-menu-horizontal {
  line-height: 64px;
  border-bottom: none;
}

/* 表格样式优化 */
.ant-table-wrapper {
  background: #fff;
  padding: 24px;
  border-radius: 2px;
  overflow-x: auto;
}

.ant-table-thead > tr > th {
  background: #fafafa;
  font-weight: 500;
}

/* 卡片样式 */
.ant-card {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  height: 100%;
}

.ant-card-head {
  border-bottom: 1px solid #f0f0f0;
}

/* 响应式布局 */
/* 移除固定宽度限制，改为响应式 */
@media (max-width: 1200px) {
  .ant-table {
    white-space: nowrap;
    overflow-x: auto;
  }

  .ant-statistic-title {
    font-size: 14px;
  }
}

@media (max-width: 992px) {
  .ant-layout-header {
    padding: 0 16px;
    background: #f0f2f5;
  }

  .ant-menu-item {
    padding: 0 10px;
  }
}

@media (max-width: 576px) {
  .main-content {
    padding: 8px;
  }

  .content-wrapper {
    padding: 12px;
  }

  .ant-card {
    margin-bottom: 12px;
  }
}

/* 页面布局容器 */
.main-layout {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 响应式表单样式 */
.ant-form-item {
  margin-bottom: 24px;
}

@media (max-width: 576px) {
  .ant-form-item {
    margin-bottom: 16px;
  }

  .ant-form-item-label {
    padding: 0 0 4px;
  }
}

/* 响应式列表样式 */
.ant-list-item {
  padding: 16px;
}

@media (max-width: 576px) {
  .ant-list-item {
    padding: 12px;
  }
}

/* 响应式搜索栏样式 */
.ant-input-search {
  max-width: 100%;
  margin-bottom: 16px;
}

/* 响应式按钮组样式 */
.ant-space {
  flex-wrap: wrap;
  gap: 8px !important;
}

/* 响应式表格过滤器样式 */
.ant-table-filter-dropdown {
  max-width: 90vw;
}

/* 响应式模态框样式 */
@media (max-width: 576px) {
  .ant-modal {
    max-width: calc(100vw - 32px);
    margin: 16px;
  }

  .ant-modal-body {
    padding: 16px;
  }
}

/* 响应式标签页样式 */
.ant-tabs-nav {
  margin-bottom: 16px;
}

@media (max-width: 576px) {
  .ant-tabs-nav {
    margin-bottom: 12px;
  }

  .ant-tabs-tab {
    padding: 8px 12px;
  }
}

/* 响应式描述列表样式 */
.ant-descriptions-item-label,
.ant-descriptions-item-content {
  padding: 12px 8px;
}

@media (max-width: 576px) {
  .ant-descriptions-item-label,
  .ant-descriptions-item-content {
    padding: 8px 4px;
  }
}